import http from "@/utils/request"

export const pay = async (tokenPackageId)=>{
    console.log("pay");
    return await http.get(`/payment/pay?tokenPackageId=${encodeURIComponent(tokenPackageId)}`);
}



export const getPaymentRecords = async ()=>{
    console.log("getPaymentRecords");
    return await http.get('/payment/getPaymentRecords');
}

export const deletePayment = async (id)=>{
    console.log("deletePayment")
    return await http.post('/payment/deletePayment',{
        id
    })
}
